package com.shumm.mapper;

import com.shumm.po.ShangHanTiaoBian;
import com.shumm.vo.tbAndcfVOMapper;
import com.shumm.vo.tbCF;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface ShangHanTiaoBianMapper {
    int addTb(@Param("shtb") ShangHanTiaoBian shtb);

    int deleteTb(@Param("id") int id);

    int updateTb(@Param("shtb") ShangHanTiaoBian shtb);

    ShangHanTiaoBian selectTbById(@Param("id") int id);

    List<tbCF> selectByContentOrComment(@Param("content") String content, @Param("comment") String comment, @Param("name") String name);

    List<tbCF> selectAllTb(@Param("size") int size, @Param("num") int num);

    int countAllTb();

    List<ShangHanTiaoBian> selectByIdWithTbid(@Param("id") int id);

    //前端数据需要修改！！！！！！！！！！！
    List<tbAndcfVOMapper> selectByIdWithDetail(@Param("id") int id);

    List<ShangHanTiaoBian> list();
}
